'''
    该案例演示集合
'''
# 创建set集合
# set1 = {100,200,300}
# print(set1,type(set1))
# set2 = set(range(10))
# print(set2,type(set2))
# # 定义一个空的set,如果想声明一个空的set,需要 set()
# set4 = {}
# print(set4,type(set4))  # {} <class 'dict'>
# set5 = set()
# print(set5,type(set5))  # set() <class 'set'>

# 向集合中添加元素
# set1 = {i* 2 for i in  range(10)}
# print(set1)  #{0, 2, 4, 6, 8, 10, 12, 14, 16, 18}
# set1.add(5)
# print(set1)
# # 删除元素
# set1.remove(5)
# print(set1)



